package com.cs.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 招标项目对象 cs_tender
 *
 * @author ruoyi
 * @date 2024-11-25
 */
public class CsTender extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 招标项目ID
     */
    private Long sId;

    /**
     * 采购计划序号
     */
    @Excel(name = "采购计划序号")
    private String xyId;

    /**
     * 招标项目编号
     */
    @Excel(name = "招标项目编号")
    private String iNumber;

    /**
     * 招标项目名称
     */
    @Excel(name = "招标项目名称")
    private String iName;

    /**
     * 项目负责人
     */
    @Excel(name = "项目负责人")
    private String pLeader;

    /**
     * 招标方式
     */
    @Excel(name = "招标方式")
    private Long iWay;

    /**
     * 是否必招
     */
    @Excel(name = "是否必招")
    private Long must;

    /**
     * 资格审查方式
     */
    @Excel(name = "资格审查方式")
    private Long sWay;

    /**
     * 业务类型
     */
    @Excel(name = "业务类型")
    private Long bType;

    /**
     * 项目预算
     */
    @Excel(name = "项目预算")
    private BigDecimal pBudget;

    /**
     * 招标单位
     */
    @Excel(name = "招标单位")
    private String iUnit;

    /**
     * 联系人
     */
    @Excel(name = "联系人")
    private String person;

    /**
     * 电话
     */
    @Excel(name = "电话")
    private String phone;

    /**
     * 邮箱
     */
    @Excel(name = "邮箱")
    private String email;

    /**
     * 地址
     */
    @Excel(name = "地址")
    private String address;

    /**
     * 公示开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "公示开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 公示结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "公示结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 项目状态
     */
    @Excel(name = "项目状态")
    private Long projectState;

    /**
     * 报价截止时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "报价截止时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date deadline;

    /**
     * 合同ID
     */
    @Excel(name = "合同ID")
    private Long eid;

    /**
     * 附件
     */
    @Excel(name = "附件")
    private String files;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "中标公示开始时间")
    private Date pStartTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "中标公示结束时间")
    private Date pEndTime;

    public CsTender() {
    }

    public Date getpStartTime() {
        return pStartTime;
    }

    public void setpStartTime(Date pStartTime) {
        this.pStartTime = pStartTime;
    }

    public Date getpEndTime() {
        return pEndTime;
    }

    public void setpEndTime(Date pEndTime) {
        this.pEndTime = pEndTime;
    }

    public Long getsId() {
        return sId;
    }

    public void setsId(Long sId) {
        this.sId = sId;
    }

    public String getXyId() {
        return xyId;
    }

    public void setXyId(String xyId) {
        this.xyId = xyId;
    }

    public String getiNumber() {
        return iNumber;
    }

    public void setiNumber(String iNumber) {
        this.iNumber = iNumber;
    }

    public String getiName() {
        return iName;
    }

    public void setiName(String iName) {
        this.iName = iName;
    }

    public String getpLeader() {
        return pLeader;
    }

    public void setpLeader(String pLeader) {
        this.pLeader = pLeader;
    }

    public Long getiWay() {
        return iWay;
    }

    public void setiWay(Long iWay) {
        this.iWay = iWay;
    }

    public Long getMust() {
        return must;
    }

    public void setMust(Long must) {
        this.must = must;
    }

    public Long getsWay() {
        return sWay;
    }

    public void setsWay(Long sWay) {
        this.sWay = sWay;
    }

    public Long getbType() {
        return bType;
    }

    public void setbType(Long bType) {
        this.bType = bType;
    }

    public BigDecimal getpBudget() {
        return pBudget;
    }

    public void setpBudget(BigDecimal pBudget) {
        this.pBudget = pBudget;
    }

    public String getiUnit() {
        return iUnit;
    }

    public void setiUnit(String iUnit) {
        this.iUnit = iUnit;
    }

    public String getPerson() {
        return person;
    }

    public void setPerson(String person) {
        this.person = person;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Long getProjectState() {
        return projectState;
    }

    public void setProjectState(Long projectState) {
        this.projectState = projectState;
    }

    public Date getDeadline() {
        return deadline;
    }

    public void setDeadline(Date deadline) {
        this.deadline = deadline;
    }

    public Long getEid() {
        return eid;
    }

    public void setEid(Long eid) {
        this.eid = eid;
    }

    public String getFiles() {
        return files;
    }

    public void setFiles(String files) {
        this.files = files;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("sId", getsId())
                .append("xyId", getXyId())
                .append("iNumber", getiNumber())
                .append("iName", getiName())
                .append("pLeader", getpLeader())
                .append("iWay", getiWay())
                .append("must", getMust())
                .append("sWay", getsWay())
                .append("bType", getbType())
                .append("pBudget", getpBudget())
                .append("iUnit", getiUnit())
                .append("person", getPerson())
                .append("phone", getPhone())
                .append("email", getEmail())
                .append("address", getAddress())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
                .append("projectState", getProjectState())
                .append("deadline", getDeadline())
                .append("eid", getEid())
                .append("files", getFiles())
                .append("pStartTime", getpStartTime())
                .append("pEndTime", getEndTime())
                .toString();
    }
}
